package team.pwy.service;


import co.elastic.clients.elasticsearch.core.SearchResponse;
import org.springframework.data.elasticsearch.core.SearchHits;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;
import team.pwy.pojo.entity.MovieIndex;
import team.pwy.vo.TypeVo;

import java.io.IOException;

@Repository
public interface MovieIndexService {

    public void initIndex ();

    SearchHits<MovieIndex> findMovieIndexByCountryAndStatus(TypeVo typeVo, Integer pageNum, Integer pageSize) throws IOException;
}
